package com.huangxt.test;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

/**
 * Created by HXT on 2019/7/31.
 */
public class SimpleDF_LT {
    public static void main(String[] args) throws Exception {
        try {
            SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
            Date curDate = simpleDateFormat.parse("2009-03-05");
            Calendar calendar = Calendar.getInstance();
            calendar.setTime(curDate);
            calendar.add(Calendar.DATE,1); //lm_fee_tx表日期为业务日期+1
            String date = simpleDateFormat.format(calendar.getTime());
            System.out.println(date);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
